package unit2;

public class Unit1 {
	
	public static void main(String[] args){
		
		int a1=123;
		int a2=a1%10;
		int a3=a1/10%10;
		int a4=a1/100%10;
		
		System.out.println("个位:" + a2);
		System.out.println("十位:" + a3);
		System.out.println("百位:" + a4);
	}

}
